package pct.manage;

import java.util.LinkedList;

import pct.database.PcServiceImpl;
import pct.entity.*;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;

public class BleachUser extends ActionSupport implements Preparable{
	private PcServiceImpl pcService=new PcServiceImpl();
	private String userID;
	private LinkedList<User>userList;

	public String execute(){
		pcService.bleachUser(userID);
		setUserList(pcService.getUserAll());
		return SUCCESS;
	}

	@Override
	public void prepare() throws Exception {
		pcService.connectDB();
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public LinkedList<User> getUserList() {
		return userList;
	}

	public void setUserList(LinkedList<User> userList) {
		this.userList = userList;
	}

}
